package com.suzj.extraenchantments.enchant.Ench_02;

import com.suzj.extraenchantments.Config;

import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.item.enchantment.Enchantment;
import net.minecraft.world.item.enchantment.EnchantmentCategory;


public class EnchantmentThief extends Enchantment {
    public EnchantmentThief() {
        super(Enchantment.Rarity.RARE, EnchantmentCategory.WEAPON,  new EquipmentSlot[]{EquipmentSlot.MAINHAND});
    }

    public int getMaxLevel() {
        if (((Boolean) Config.SERVER.isThief.get()).booleanValue()) {
            return 2;
        }
        return 0;
    }

    public int getMinCost(int pLevel) {
        return 30;
    }

    public int getMaxCost(int pLevel) {
        return 50;
    }
}